<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateQdPhoneMsgTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qd_phone_msg', function (Blueprint $table) {
            $table->id();
            $table->string("phone")->comment("手机号");
            $table->string("code")->comment("验证码");
            $table->integer("add_time")->comment("验证码时间");
        });
        DB::statement("ALTER TABLE `qd_phone_msg` comment'签到的手机短信记录表'");//表注释
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qd_phone_msg');
    }
}
